﻿using SH.Common.CommonReturn;
using SH.Room.Domain.RoomClass;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SH.Room.Application.IServices.IRoomType
{
    public interface IRoomTypeServices:IBaseServices<RoomType>
    {
        //房型添加
        Task<ApiResult<int>> RoomTypeAdd(RoomTypeAddDto roomTypeAddDto);

        //房型下拉列表
        Task<List<RoomTypeDto>> GetRoomList();
        //房型显示
        ApiPaging<List<RoomTypeListDto>> GetRoomTypeList(string? rtname, int pageIndex, int pageSize);

        //房型删除
        ApiResult<int> DeleteRoomType(int rtid);

        //房型批量删除
        ApiResult<int> BatchDelRoomType(List<RoomType> roomType);

        //房型反填
        RoomType GetFindRoomType(int rtid);
        
        //房型修改
        ApiResult<int> UpdRoomType(RoomTypeUpdDto roomTypeUpdDto);

    }
}
